package com.alangyun.remind.vo.talent;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.alangyun.remind.utils.Utility;

public class SudokuView implements Serializable {

	private Integer id;
	private String name;
	private List<SudokuCellView> sudoku;
	private String remark;
	
	public static SudokuView create(Integer id, String name) {
		SudokuView ret = new SudokuView();
		ret.id = id;
		ret.name = name;
		ret.sudoku = new ArrayList<>(Utility.SUDOKU_CAPICITY);
		for(int i=0; i<Utility.SUDOKU_CAPICITY; i++)
			ret.sudoku.add(SudokuCellView.create(i+1, Utility.SUDOKU_STAR_REMARKS[i]));
		
		return ret;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public List<SudokuCellView> getSudoku() {
		return sudoku;
	}

	public void setSudoku(List<SudokuCellView> sudoku) {
		this.sudoku = sudoku;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}
